Skip to main content

All Questions

0votes
2answers
252views

Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial

I am following the official WordPress "Create a Block Tutorial" located here: https://developer.wordpress.org/block-editor/handbook/tutorials/create-block/ I used this as a starting point ...
Chris's user avatar
1vote
0answers
328views

Add new image block, set default class name and update it using Javascript

I am trying to programmatically set a default class on an image block, which is applied without the user manually adding it via the 'Additional CSS' field. I have tried applying a default style on ...
esd's user avatar
  • 23
1vote
0answers
73views

Update an image block style programatically

I am trying to update the default classname of an image block that is being added to a page. In the editor backend view, I have a select drop down using ACF plugin, which programmatically changes the ...
esd's user avatar
  • 23
15votes
3answers
5kviews

Set default image link target in Gutenberg image block

I want to set the default target of the image block in Gutenberg to "Media File": I've found solutions for the classic editor, and one that appears to work for Gutenberg galleries by editing the block'...
Sean's user avatar
  • 677

close